package GUI;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Font;

import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class Print extends JFrame {

	private JPanel contentPane;
	private MainMenu m;

	/**
	 * Create the frame.
	 */
	public Print() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 280, 120);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblPrintOrNot = new JLabel("Do you want to print now?");
		lblPrintOrNot.setFont(new Font("Tahoma", Font.PLAIN, 13));
		lblPrintOrNot.setBounds(52, 10, 160, 15);
		contentPane.add(lblPrintOrNot);
		
		JButton btnYes = new JButton("Yes");
		btnYes.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				MainMenu.getInstance().setVisible(true);
				dispose();
			}
		});		
		btnYes.setBounds(10, 47, 89, 23);
		contentPane.add(btnYes);
		
		JButton btnNo = new JButton("No");
		btnNo.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				MainMenu.getInstance().setVisible(true);
				dispose();
			}
		});
		btnNo.setBounds(165, 47, 89, 23);
		contentPane.add(btnNo);
	}

}
